var game = urlInfo.params.game;
$("#center-top .back").click(function() {
    switch (urlInfo.params.back) {
    case "game":
        Util.jumpUrl({
            file: "main2.html",
        }); break;

    case "jishi":
        Util.jumpUrl({
            cmd: "jishi",
            back: "game",
        }); break;

    case "gamecenter":
        Util.jumpUrl({
            cmd: "gamecenter",
        }); break;

    default:
        Util.jumpUrl({
            cmd: "index"
        }); break;
    }
});
$("#center-top .back2game").click(function() {
    Util.jumpUrl({
        cmd: "gamecenter",
    })
});


switch (urlInfo.params.cmd) {
case "index":
    $("title").html("个人中心");
    $("#center-top e").html("个人中心");
    switch_page("center/index", $(".content"));
    break;

case "profile":
    $("title").html("个人资料");
    $("#center-top e").html("个人资料");
    switch_page("center/profile", $(".content"));
    break;

case "password":
    $("title").html("登录密码");
    $("#center-top e").html("登录密码");
    switch_page("center/password", $(".content"));
    break;

case "take_password":
    $("title").html("取款密码");
    $("#center-top e").html("取款密码");
    switch_page("center/take_password", $(".content"));
    break;  

case "bank":
    $("title").html("银行账号");
    $("#center-top e").html("银行账号");
    switch_page("center/bank", $(".content"));
    break;   
case "add_card":
    $("title").html("银行账号");
    $("#center-top e").html("银行账号");
    switch_page("center/add_card", $(".content"));
    break;  

case "login":
    $("title").html("欢迎登录使用");
    $("#center-top e").html("欢迎登录使用");
    switch_page("login", $(".content"));
    break;       

case "register":
    $("title").html("注册");
    $("#center-top e").html("注册");
    switch_page("register", $(".content"));
    break;     

case "charge":
    $("title").html("资金管理");
    $("#center-top e").html("资金管理");
    switch_page("center/charge", $(".content"));
    break;      

case "jishi":
    $("title").html("即时注单");
    $("#center-top e").html("即时注单");
    switch_page("center/jishi", $(".content"));
    break;

case "jishi2":
    $("title").html("即时注单");
    $("#center-top e").html("即时注单");
    switch_page("center/jishi2", $(".content"));
    break;    

case "today":
case "win":
    $("title").html("今日已结");
    $("#center-top e").html("今日已结");
    switch_page("center/today", $(".content"));
    break;

case "gamecenter":
    $("title").html("游戏大厅");
    $("#center-top e").html("游戏大厅");
    switch_page("center/gamecenter", $(".content"));
    break;

case "bet":
    $("title").html("下注记录");
    $("#center-top e").html("下注记录");
    switch_page("center/bet", $(".content"));
    break;

case "long":
    $("title").html("两面长龙");
    $("#center-top e").html("两面长龙");
    switch_page("center/long", $(".content"));
    break;

case "luzhu":
    $("title").html("露珠");
    $("#center-top e").html("露珠");
    switch_page("center/luzhu", $(".content"));
    break;

case "result":
    $("title").html("开奖结果");
    $("#center-top e").html("开奖结果");
    switch_page("center/result", $(".content"));
    break;  

case "rule":
    $("title").html("游戏规则");
    $("#center-top e").html("游戏规则");
    switch_page("center/rule", $(".content"));
    break;

case "charge_bank":    
    $("title").html("银行转账");
    $("#center-top e").html("银行转账");
    switch_page("center/charge_bank", $(".content"));
    break;
case "charge_bank_online":    
    $("title").html("网银支付");
    $("#center-top e").html("网银支付");
    switch_page("center/charge_bank_online", $(".content"));
    break;    

case "charge_wechat":    
    $("title").html("微信转账");
    $("#center-top e").html("微信转账");
    switch_page("center/charge_wechat", $(".content"));
    break;
case "charge_wechat_online":    
    $("title").html("微信支付");
    $("#center-top e").html("微信支付");
    switch_page("center/charge_wechat_online", $(".content"));
    break;    

case "charge_alipay":    
    $("title").html("支付宝转账");
    $("#center-top e").html("支付宝转账");
    switch_page("center/charge_alipay", $(".content"));
    break;    
case "charge_alipay_online":    
    $("title").html("支付宝支付");
    $("#center-top e").html("支付宝支付");
    switch_page("center/charge_alipay_online", $(".content"));
    break;    
    
case "charge_qq":    
    $("title").html("QQ钱包转账");
    $("#center-top e").html("QQ钱包转账");
    switch_page("center/charge_qq", $(".content"));
    break;    
case "charge_qq_online":    
    $("title").html("QQ钱包支付");
    $("#center-top e").html("QQ钱包支付");
    switch_page("center/charge_qq_online", $(".content"));
    break;        

case "message":    
    $("title").html("消息中心");
    $("#center-top e").html("消息中心");
    switch_page("center/message", $(".content"));
    break;    
}
